package com.jwdf.uda.http.action;

import android.content.Context;

import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.http.AHttpService;
import com.jwdf.uda.http.ApiService;

import retrofit2.Call;

/**
 * 类说明：
 */
public class UserRedPointAction extends AHttpService<PbBean.PbResUserGetRedpoint> {
    public static UserRedPointAction newInstance(Context context){
        return new UserRedPointAction(context);
    }

    private UserRedPointAction(Context context) {
        super(context);
    }

    @Override
    protected Call newRetrofitCall(ApiService apiService, PbBean.PbBaseClientInfo.Builder baseBuilder) {
        PbBean.PbReqUserGetRedpoint.Builder builder = PbBean.PbReqUserGetRedpoint.newBuilder();
        builder.setBaseClientInfo(baseBuilder);

        return apiService.getRedpoint(builder.build());
    }
}
